:root {
  --green-900: #153f25;
  --green-800: #1b5e31;
  --green-700: #257a3d;
  --green-600: #31964a;
  --green-100: #eaf5ed;
  --green-050: #f4faf5;
  --blue-700: #0876ad;
  --blue-100: #eaf6fb;
  --amber-700: #c77810;
  --amber-100: #fff4df;
  --ink: #112018;
  --text: #4a554e;
  --line: #dfe8e1;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(18, 48, 29, 0.08);
  --shadow-md: 0 18px 48px rgba(18, 48, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --page: min(1200px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-800);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(21, 63, 37, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: var(--page);
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 88px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-700);
}

.main-nav .nav-cta {
  padding: 14px 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 10px 24px rgba(37, 122, 61, 0.22);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--green-800);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--green-050);
  cursor: pointer;
}

.menu-button > span:not(.menu-label) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 18%, rgba(255, 255, 255, 0.96) 0 18%, transparent 52%),
    linear-gradient(115deg, #ffffff 0 36%, #eef8f1 74%, #e7f4ef 100%);
}

.hero-inner {
  min-height: 640px;
  padding-block: 72px 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(48px, 5.3vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(17px, 1.35vw, 21px);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 12px 28px rgba(37, 122, 61, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-800);
}

.button-secondary {
  border-color: rgba(37, 122, 61, 0.18);
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.92);
}

.button-blue {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 12px 28px rgba(8, 118, 173, 0.2);
}

.button-amber {
  color: var(--white);
  background: var(--amber-700);
  box-shadow: 0 12px 28px rgba(199, 120, 16, 0.2);
}

.button-white {
  color: var(--green-800);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.hero-pills {
  width: min(430px, 100%);
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-pills span {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 122, 61, 0.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #31463a;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(26, 73, 40, 0.04);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.hero-pills span:nth-child(3) {
  width: calc(50% - 5px);
  grid-column: 1 / -1;
  justify-self: center;
}

.hero-media {
  position: relative;
  min-height: 500px;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7% -10% -6% 6%;
  border-radius: 38px 0 0 38px;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(-5deg);
}

.hero-media img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 118%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  border-radius: 30px 0 0 30px;
  box-shadow: var(--shadow-md);
}

.hero-card {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 24px;
  min-width: 250px;
  padding: 18px 22px;
  border: 1px solid rgba(21, 63, 37, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.hero-card span,
.hero-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.hero-card span {
  color: var(--green-700);
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-card strong {
  color: var(--ink);
}

.resolver {
  position: relative;
  z-index: 5;
  margin-top: -32px;
}

.resolver-box {
  padding: 34px 36px 28px;
  border: 1px solid rgba(21, 63, 37, 0.08);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.section-heading.compact {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: end;
  gap: 28px;
}

.section-heading p,
.integration-intro > p,
.closing-cta > div:first-child > p {
  margin: 0;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 47px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.resolver-links {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resolver-links a {
  min-height: 124px;
  padding: 24px 22px 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 10px;
  text-decoration: none;
  transition: background 160ms ease;
}

.resolver-links a + a {
  border-left: 1px solid var(--line);
}

.resolver-links a:hover,
.resolver-links a:focus-visible {
  background: var(--green-050);
}

.resolver-links span {
  grid-row: 1 / span 2;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 900;
}

.resolver-links strong {
  font-size: 16px;
  line-height: 1.3;
}

.resolver-links b {
  align-self: end;
  color: var(--green-700);
  font-size: 13px;
}

.resolver-links i {
  font-style: normal;
}

.solutions {
  padding-block: 94px 104px;
  display: grid;
  gap: 34px;
}

.solution {
  min-height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  box-shadow: var(--shadow-sm);
}

.solution-perforacion {
  background: var(--green-100);
}

.solution-digital {
  background: var(--blue-100);
}

.solution-formacion {
  background: var(--amber-100);
}

.solution-image {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-perforacion .solution-image img {
  object-position: 58% center;
}

.solution-digital .solution-image img {
  object-position: 74% center;
}

.solution-formacion .solution-image img {
  object-position: 52% center;
}

.solution-tag {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(17, 32, 24, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solution-content {
  padding: clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-content h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.solution-content > p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 16px;
}

.solution-content ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.solution-content li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 700;
}

.solution-content li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

.solution-digital li::before {
  background: var(--blue-700);
}

.solution-formacion li::before {
  background: var(--amber-700);
}

.solution-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.text-link {
  color: var(--green-800);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.solution-digital .text-link {
  color: var(--blue-700);
}

.solution-formacion .text-link {
  color: var(--amber-700);
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.integration {
  padding-block: 104px;
  background: #edf6ef;
}

.integration-intro {
  max-width: 820px;
}

.integration-intro h2 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.integration-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.integration-grid article {
  min-height: 240px;
  padding: 30px;
  border: 1px solid rgba(21, 63, 37, 0.08);
  border-radius: 20px;
  background: var(--white);
}

.integration-grid span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green-700);
  font-size: 13px;
  font-weight: 900;
}

.integration-grid h3 {
  margin: 30px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.integration-grid p {
  margin: 14px 0 0;
  color: var(--text);
}

.contact-section {
  padding-block: 76px 58px;
}

.closing-cta {
  min-height: 270px;
  padding: clamp(38px, 5vw, 64px);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: center;
  gap: 44px;
  color: var(--white);
  background: linear-gradient(110deg, #237a3d 0%, #35a54f 100%);
  box-shadow: var(--shadow-md);
}

.closing-cta > div:first-child > p {
  color: rgba(255, 255, 255, 0.74);
}

.closing-cta h2 {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.closing-actions {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}

.contact-emails {
  min-height: 66px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.mail-link {
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.mail-link:hover,
.mail-link:focus-visible {
  border-bottom-color: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 180px;
  padding-block: 40px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 56px;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.footer-brand img {
  width: 72px;
  height: auto;
}

.footer-brand p {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-700);
}

.copyright {
  margin: 0;
  color: #78827b;
  font-size: 13px;
}

:focus-visible {
  outline: 3px solid rgba(37, 122, 61, 0.35);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 34px, 760px);
  }

  .header-inner {
    min-height: 82px;
  }

  .brand img {
    width: 72px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    right: 17px;
    left: 17px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .main-nav .nav-cta {
    margin-top: 6px;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 52px 78px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-media::before {
    display: none;
  }

  .hero-media img {
    width: 100%;
    border-radius: 24px;
  }

  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resolver-links {
    grid-template-columns: 1fr;
  }

  .resolver-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .solution,
  .solution-digital {
    grid-template-columns: 1fr;
  }

  .solution-digital .solution-content {
    order: 2;
  }

  .solution-digital .solution-image {
    order: 1;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }

  .integration-grid article {
    min-height: auto;
  }

  .closing-cta {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 24px);
  }

  html {
    scroll-padding-top: 84px;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 64px;
  }

  .main-nav {
    top: 76px;
    right: 12px;
    left: 12px;
  }

  .hero-inner {
    padding-block: 38px 62px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .solution-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-pills {
    grid-template-columns: 1fr;
  }

  .hero-pills span:nth-child(3) {
    width: 100%;
    grid-column: auto;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }

  .resolver {
    margin-top: -24px;
  }

  .resolver-box {
    padding: 26px 20px 18px;
  }

  .resolver-links a {
    padding-inline: 10px;
  }

  .solutions {
    padding-block: 62px 72px;
    gap: 22px;
  }

  .solution,
  .solution-image {
    min-height: auto;
  }

  .solution-image {
    height: 310px;
  }

  .solution-content {
    padding: 34px 24px 38px;
  }

  .solution-content h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .integration {
    padding-block: 70px;
  }

  .integration-intro h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .integration-grid {
    margin-top: 34px;
  }

  .contact-section {
    padding-block: 50px 36px;
  }

  .closing-cta {
    min-height: 0;
    padding: 34px 24px;
    border-radius: 22px;
  }

  .closing-cta h2 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .footer-inner {
    min-height: 0;
    padding-block: 34px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PIE DE PÁGINA JF — ESTÁNDAR COMÚN A LAS TRES PÁGINAS
   Cambio limitado a tipografía, tamaños, espaciado y logo JF.
   ============================================================ */
.site-footer {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  border-top: 1px solid #dfe8e1;
  background: #ffffff;
  color: #112018;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.footer-brand img {
  width: 72px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand p {
  margin: 0;
  color: #4a554e;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 750;
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #257a3d;
}
.copyright {
  margin: 0;
  color: #78827b;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.footer-inner {
  min-height: 180px;
  padding-block: 40px 30px;
  gap: 24px 56px;
}
@media (max-width: 720px) {
  .footer-inner { min-height: 0; padding-block: 34px 28px; }
  .footer-brand img { width: 72px; }
  .footer-links { flex-direction: row; gap: 16px 22px; }
}

